package com.yunchao.library.socket.enum


//enum class ConnectionEvent { ATTEMPT, SUCCESS, FAILURE }

sealed class ConnectionEvent {
    data object Connecting : ConnectionEvent()
    data class Connected(val host: String, val port: Int) : ConnectionEvent()
    data object Disconnected : ConnectionEvent()
    data class Reconnecting(val attempt: Int, val delayMs: Long) : ConnectionEvent()
    data class Error(val cause: Throwable) : ConnectionEvent()
}
